
import UserRoutes from "@/views/users/route"
import AnnoRoutes from "@/views/anno/route"
import AdviseRoutes from "@/views/advise/route"

export default [
   {
     path:"/main",
     name:"main",
     component:()=>import("./index.vue"),
     redirect:"/home",
     children:[
        {path:"/home",name:"home",component:()=>import("@/views/home/home.vue")},
        {path:"/info",name:"info",component:()=>import("@/views/infos/index.vue")},
        ...UserRoutes,
        ...AnnoRoutes,
        ...AdviseRoutes,
        {
          path:"/:pathMatch(.*)",
          redirect:{
            name:"notfound"
          }
        }
     ]
   }
]